const express = require('express')
const app = express()
const fs = require('fs')
const path = require('path')
const cors = require('cors')
app.get('/login',(req,res)=>{
  res.end('亮哥真帅')
})
app.use(cors())
app.get('/index.html', (req, res) => {
  fs.readFile(path.join(__dirname,'./index.html'),(err,data)=>{
    console.log(data.toString());
    res.send(data.toString())
  })
  
})

app.listen(666,()=>{
  console.log('http://127.0.0.1:666')
})

